import requests
import json

url = "https://spa1.scrape.center/api/movie/?limit=10&offset=1"
response = requests.get(url)

text = response.text
text_json = json.loads(text)

movie_info_list = text_json["results"]


def print_movie_info(movie_info):
    print("*" * 50)
    print(movie_info['name'], movie_info['alias'])
    print("封面链接：", movie_info['cover'])
    print("剧情类型：", movie_info['categories'])


for movie_info in movie_info_list:
    print_movie_info(movie_info)